package com.lantosec.hmrp.modules.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lantosec.hmrp.core.kit.PageVO;
import com.lantosec.hmrp.core.kit.tree.TreeNodeVo;
import com.lantosec.hmrp.modules.system.entity.SysPermission;

import java.util.List;

/**
 * <p>
 * 系统权限表 服务类
 * </p>
 *
 * @author AutoCode
 * @since 2020-02-15
 */
public interface ISysPermissionService extends IService<SysPermission> {

    Page<SysPermission> queryPermissionById(String permissionId, PageVO<SysPermission> page);

    Integer queryOnlyPermissionName(String permissionName);

    void changeState(String permissionId, String state);

    List<SysPermission> queryTopPermissionList();

    String queryMaxId(String parentId);

    List<TreeNodeVo> getPermissionTree();
}
